cmake_minimum_required(VERSION 2.8)

message("-- Project: stdcom_tool")

file(GLOB stdcom_tool_src "*.cpp")

include_directories(
		${PROJECT_SOURCE_DIR}/include
		${PROJECT_SOURCE_DIR}/crt
		${PROJECT_SOURCE_DIR}/extensions/include
		${PROJECT_SOURCE_DIR}/extensions/include/platform
		${by3rd_library_include})


if (${WIN_OS})

	add_executable(stdcom_tool WIN32 ${stdcom_tool_src})
	target_link_libraries(stdcom_tool shlwapi)

else()

	include_directories(
		/usr/local/include
		/opt/local/include
		/usr/include)


	add_executable(stdcom_tool ${stdcom_tool_src})


	set_target_properties(stdcom_tool PROPERTIES COMPILE_FLAGS ${execute})
	set_target_properties(stdcom_tool PROPERTIES COMPILE_FLAGS ${compile})
	set_target_properties(stdcom_tool PROPERTIES LINK_FLAGS ${r_path})

	

endif()


set_target_properties(stdcom_tool PROPERTIES OUTPUT_NAME "stdcom_tool")
target_link_libraries(stdcom_tool stdcrt)









